﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVCdemo.Controllers
{
    public class CommunityController : Controller
    {
        // GET: Student
        //基于controller默认查找
        public ActionResult Index()
        {
            ViewBag.PageTitle = "社区管理";
            return View();
        }
        //指定视图名称
        public ActionResult List()
        {
            return View("Index");
        }

        //在view目录外，指定视图的完整路径
        public ActionResult list2()
        {
            return View("~/Views/Home/Index.cshtml");
        }       

    }

}